var historys = new Vue({
	el: '#historys',
	data: {
	fammerName:'',
	farmerId:'',
	plantList:[],
	breedList:[],
	dxdanList:[]
	},
	mounted: function() {
		this.fammerName = localStorage.fammername
		this.farmerId = localStorage.fammerid
		this.getAllList();
	},
	methods: {
		getAllList:function(){
			var _this = this
				axios({
				url: sever + '/history',
				method: 'POST',
				// 请求体重发送的数据
				params: {
					id:_this.farmerId
				},
				timeout: 50000,
				// 设置请求头
				headers: {
					'Content-Type': 'application/x-www-form-urlencoded'
				}
			}).then(function(res){ 
				_this.plantList = res.data.plantList
				_this.breedList = res.data.breedList
				_this.dxdanList = res.data.dxdanList
		
			})
		}

	},
});